/*--------------------------------------------- Noble Steed Engine--------------------------------------*
Authors : Daniel Randle, Alex Bourne
Date Created : Mar 13 2013

File:
	nshextile.cpp

Description:
	This file contains the definition for the NSHexTile class and any associated functions that help
	the ol' girl out
*-----------------------------------------------------------------------------------------------------*/

#include <nshextile.h>

#ifdef DEBUG
#include <debug.h>
#endif

/*---------------------------*
|   class NSHexTile BEGINS  |
*---------------------------*/

NSHexTile::NSHexTile(const std::string & name, const std::string & mFileName, const std::string & mDirectory, const std::string & tDir, bool castShadows, bool hasTransluscentMaterial): NSObject(name, mFileName, mDirectory, tDir, castShadows, hasTransluscentMaterial)
{
	std::stringstream ss;
	ss << "trans set to " << hasTransluscentMaterial;
	LogFile l(ss);
	objType = HexTile;
	LogFile("Creating HexTile with name : " + objectName);
}

NSHexTile::~NSHexTile()
{
	LogFile("deleting HexTile with name : " + objectName);
	LogFile("HexTile deleted");
}

void NSHexTile::setMovementModifier(float value)
{
	movementModifier = value;
}

void NSHexTile::changeMovementModifier(float amount)
{
	movementModifier += amount;
}

float NSHexTile::getMovementModifier() const
{
	return movementModifier;
}

void NSHexTile::draw()
{
	NSObject::draw();
}

void NSHexTile::drawSingle(unsigned int refID)
{
	NSObject::drawSingle(refID);
}

void NSHexTile::drawOBB(unsigned int refID)
{
	drawSingle(refID);
}